import {createRouter, createWebHashHistory} from 'vue-router'
import Index from '../components/Index.vue'
import Product from '../components/Product.vue'
import Team from '../components/Team.vue'
import Story from '../components/Story.vue'
import Article from '../components/Article.vue'
import Us from '../components/Us.vue'
import ProductValue from '../components/ProductValue.vue'
import ArticleValue from '../components/ArticleValue.vue'

const  router = createRouter({
    history: createWebHashHistory(),
    routes: [ {
        path: '/', component: Index
    },{
        path: '/index', component: Index,
    }, {
        path: '/product', component: Product,
    }, {
        path: '/team', component: Team,
    }, {
        path: '/story', component: Story,
    }, {
        path: '/article', component: Article,
    }, {
        path: '/us', component: Us,
    },{
        path: '/product/:value', name: "pro-detail", component: ProductValue
    },{
        path: '/article/:value', name: "art-detail", component: ArticleValue
    }]
})

export default router
